<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>519消防网</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/plugins/layui/css/layui.css?v=<?php echo time()?>" rel="stylesheet">
    <link href="/css/home/base.css?v=<?php echo time()?>" rel="stylesheet">
    <link href="/css/home/login.css?v=<?php echo time()?>" rel="stylesheet">
</head>
<body>
<style>
    .main {
        background: #f8f8f9 url(/img/home/login.jpg) no-repeat;
        height: 700px;
        width: 100%;
        padding: 150px 0;
        overflow: hidden;
        margin-bottom: 0;
    }

    .login {
        background: #fff;
        background: rgba(200, 200, 200, 0.7);
        border-radius: 10px;
        padding-bottom: 10px;
    }

    .lab {
        float: left;
        display: block;
        padding: 9px 5px 9px 0;
        width: 80px;
        font-weight: 400;
        line-height: 20px;
        text-align: right;
        color: #333;
        font-size: 16px;
    }

    .layui-input-block {
        margin-left: 0;
    }

    .layui-form-item input {
        padding: 0 15px;
        background: rgba(0, 0, 0, 0.25);
        color: #fff;
        border: 0;
        outline: medium;
    }

    input::-webkit-input-placeholder {
        color: #fff;
    }

    .layui-form-item span {
        height: 18px;
    }

    .layadmin-user-login-box {
        padding-bottom: 0px;
    }

    .layadmin-user-login-header h2 {
        margin-bottom: 0;
    }

    .layui-input {
        padding-left: 0px;
    }

    .layui-form-checkbox[lay-skin=primary] span {
        color: #222;
    }

    .layui-form-checked[lay-skin=primary] i {
        border-color: #108ADA;
        background-color: #108ADA;
        color: #fff;
    }

    .layui-form-checkbox[lay-skin=primary]:hover i {
        border-color: #108ADA;
        color: #fff;
    }

    .border {
        border-width: 1px;
        border-style: solid;
        background-color: #fff;
        border-radius: 2px;
    }

    .code {
        background: #108ADA;
        border: 0
    }
</style>
@include('home.common.header')

<div class="layadmin-user-login layadmin-user-display-show main" id="LAY-user-login">
    <div class="layui-main auth-login">
        <div class="layadmin-user-login-main login" style="height: 400px;">
            <div class="layadmin-user-login-box layadmin-user-login-header"
                 style="margin-top: 10px;margin-bottom: 10px">
                <h2>登录</h2>
            </div>
            <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
                <form class="layui-form" action="" lay-filter="example">
                    <div class="layui-form-item ">

                        <input type="text" id="mobile" name="mobile" placeholder="手机" lay-verify="required|phone"
                               class="layui-input border" autocomplete="off" value="18958111048">
                    </div>
                    <div class="layui-form-item">
                        <input type="hidden" name="_token" value="{{csrf_token()}}">
                        <input type="text" id="password" name="password" placeholder="密码" lay-verify="required"
                               class="layui-input" value="8888">
                    </div>
                    <div class="layui-form-item">

                        <input type="checkbox" style="color: #333" name="check" lay-skin="primary" lay-verify="required"
                               title="保存账号">
                        <div class="" style="width: 64px;float: right;margin-top: 10px">
                            <a class="change" style="color: #108ADA" href="{{url('auth/register')}}">忘记密码</a>
                        </div>
                    </div>
                    <div class="layui-form-item">

                        <button type="button" class="layui-btn layui-btn-fluid submit" lay-submit lay-filter="demo1"
                                style="background: #108ADA;border: 0">登录
                        </button>
                    </div>
                    <div class="layui-form-item" style="color: #666">
                        温馨提示：用人单位招聘人才，以任何名义向应聘者收取费用
                    </div>


                    <div class="layui-form-item" style="">

                        <div class="" style="width: 64px;float: right;margin-top: 10px">
                            <a class="change" style="color: #108ADA" href="{{url('auth/register')}}">我要注册</a>
                        </div>

                    </div>
                </form>
            </div>

        </div>

    </div>

</div>
@include('home.common.footer')

<script type="application/javascript" src="/plugins/layui/layui.js?v=<?php echo time()?>"></script>
<script>
    layui.use(['jquery', 'form'], function () {
        let isTimer = false;
        let form = layui.form();
        let layer = layui.layer;
        let $ = layui.jquery;
        form.on('submit(demo1)', function (data) {
            $.post({
                url: "/auth/validate", dataType: 'json', data: data.field, async: false, success: function (res) {
                    if (res.status == 1) {
                        window.location.href = '/member';
                    } else {
                        layer.msg(res.msg, {time: 3000});
                    }
                }
            });
            return false;
        });
    });

</script>
</body>
</html>